#ifndef __pt_MEMORY_H__
#define __pt_MEMORY_H__

void* pt_malloc(pt_size_t size);
void* pt_realloc(void *ptr, pt_size_t size);
void pt_free(void* ptr);

void * pt_memset(void *src, int c, pt_size_t n);
void * pt_memcpy(void *dst, const void *src, pt_size_t n);
int pt_memcmp(const void *dst, const void *src, pt_size_t n);
void * pt_memmove(void *dst, const void *src, pt_size_t count);

#define PT_TYPE_MALLOC(type)	((type *)(pt_malloc(sizeof(type))))

#endif

